package com.xqit.ydzhkt.answer.mapper;

import com.xqit.ydzhkt.entity.AnswerEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * Created by Janus on 2020/6/10
 */

public interface AddAnswerMapper {

    //添加回答
    void addAnswer(@Param("userId") int userId,@Param("questionId") int questionId,
                   @Param("answerContent") String answerContent);

    //修改问题状态为已回答
    void updateReply(int questionId);
}
